<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script setup>
import { onMounted } from 'vue'
import { useAuthStore } from '@/stores/auth'

const authStore = useAuthStore()

onMounted(() => {
  // 检查本地存储的登录状态
  if (authStore.isLoggedIn) {
    console.log('用户已登录:', authStore.user.username)
  }
})
</script>

<style>
#app {
  height: 100vh;
}
</style> 